#include "s3c2440_soc.h"
#include "uart.h"
#include  "my_printf.h"

int main(void)
{
	unsigned char c;

	uart0_init();//115200
	puts("Enter the Tacc val: \n\r");

//	my_printf_test();
	while(1)
	{
		c=getchar();
		putchar(c);

		if(c >= '0' && c <= '7'){
			bank0_tacc_set(c-'0');
		}
		else{
			puts("Error, val should between 0~7\r\n");
			puts("Enter the Tacc val: \r\n");
		}
	}
	return 0;
}
